<?php
/**
 * @version:    $Id: loadCSS.php 2 2011-07-26 00:59:53Z epatarroyo $
 * @copyright:    Copyright (C) 2010 OpenWeb Software. All rights reserved.
 * @license:    GNU/GPL
 * This version may have been modified pursuant to the GNU General Public License,
 * and as distributed it includes or is derivative of works licensed under the
 * GNU General Public License or other free or open source software licenses.
 */

$cssBrowser = $this->baseurl . "/templates/" . $this->template . "/css/" . "browser-" . strtolower(browserDetect()) . ".css";

$col1 = (!$editMode && ($this->countModules( 'col1Top' ) || $this->countModules( 'nav02' ) || $this->countModules( 'col1Bottom' ))) ?  TRUE : FALSE;
$col2 = (!$editMode && ($this->countModules( 'col2Top' ) || $this->countModules( 'nav04' ) || $this->countModules( 'col2Bottom' ))) ?  TRUE : FALSE;

// estilos dinamicos
$dynamicstyles = "";
$dynamicstyles .= "
  <style type=\"text/css\" media=\"all\">
  body {
    margin: 0;
    padding: 0;
  }\n";
if ($this->countModules('usermenu')) :
$dynamicstyles .= "
  #wrapper {
   margin-top:45px;
  }\n";
endif;
if ($col1 || $col2) :
$dynamicstyles .= "
  #content {
    width: 75%;
    float: left;
  }\n";
endif;
if ($col1 && $col2) :
$dynamicstyles .= "
  #content {
    width: 50%;
    float: left;
  }\n";
endif;
if ($this->countModules('featured1A') && $this->countModules('featured1B') && $this->countModules('featured1C')) : 
$dynamicstyles .= "
  #featured1A, #featured1B, #featured1C {
    width: 33.3%;
    float: left;
  }\n";
endif;
if ($this->countModules('featured1A') && $this->countModules('featured1B') && !$this->countModules('featured1C')) : 
$dynamicstyles .= "
  #featured1A, #featured1B {
    width: 50%;
    float: left;
  }\n";
endif;
if ($this->countModules('featured1A') && !$this->countModules('featured1B') && $this->countModules('featured1C')) : 
$dynamicstyles .= "
  #featured1A {
    width: 66.6%;
    float: left;
  }\n
  #featured1C {
    width: 33.3%;
    float: right;
  }\n";
endif;
if (!$this->countModules('featured1A') && $this->countModules('featured1B') && $this->countModules('featured1C')) : 
$dynamicstyles .= "
  #featured1B {
    width: 33.3%;
    float: left;
  }\n
  #featured1C {
    width: 66.6%;
    float: right;
  }\n";
endif;
if ($this->countModules('featured2A') && $this->countModules('featured2B') && $this->countModules('featured2C')) : 
$dynamicstyles .= "
  #featured2A, #featured2B, #featured2C {
    width: 33.3%;
    float: left;
  }\n";
endif;
if ($this->countModules('featured2A') && $this->countModules('featured2B') && !$this->countModules('featured2C')) : 
$dynamicstyles .= "
  #featured2A, #featured2B {
    width: 50%;
    float: left;
  }\n";
endif;
if ($this->countModules('featured2A') && !$this->countModules('featured2B') && $this->countModules('featured2C')) : 
$dynamicstyles .= "
  #featured2A {
    width: 66.6%;
    float: left;
  }\n
  #featured2C {
    width: 33.3%;
    float: right;
  }\n";
endif;
if (!$this->countModules('featured2A') && $this->countModules('featured2B') && $this->countModules('featured2C')) : 
$dynamicstyles .= "
  #featured2B {
    width: 33.3%;
    float: left;
  }\n
  #featured2C {
    width: 66.6%;
    float: right;
  }\n";
endif;
if ($this->countModules('featured3A') && $this->countModules('featured3B') && $this->countModules('featured3C')) : 
$dynamicstyles .= "
  #featured3A, #featured3B, #featured3C {
    width: 33.3%;
    float: left;
  }\n";
endif;
if ($this->countModules('featured3A') && $this->countModules('featured3B') && !$this->countModules('featured3C')) : 
$dynamicstyles .= "
  #featured3A, #featured3B {
    width: 50%;
    float: left;
  }\n";
endif;
if ($this->countModules('featured3A') && !$this->countModules('featured3B') && $this->countModules('featured3C')) : 
$dynamicstyles .= "
  #featured3A {
    width: 66.6%;
    float: left;
  }\n
  #featured3C {
    width: 33.3%;
    float: right;
  }\n";
endif;
if (!$this->countModules('featured3A') && $this->countModules('featured3B') && $this->countModules('featured3C')) : 
$dynamicstyles .= "
  #featured3B {
    width: 33.3%;
    float: left;
  }\n
  #featured3C {
    width: 66.6%;
    float: right;
  }\n";
endif;
$dynamicstyles .= "  </style>\n";